<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/jsplib/pubhead.jsp"%>
<%@ page import="net.comm.param.service.impl.TagsServiceImpl" %>
<%@ page import="net.comm.common.ReturnMessage" %>
<%@ page import="net.comm.util.StringUtil" %>
<%@ page import="java.util.List" %>

<% 

		try {
			request.setCharacterEncoding("UTF-8"); 
			response.setCharacterEncoding("UTF-8"); 
		} catch (Exception e) {
			e.printStackTrace();
		}
		//不缓存页面
		response.setHeader("Cache-Control","no-store");
		response.setHeader("Pragrma","no-cache");
		response.setDateHeader("Expires",0);

		String content = StringUtil.chiDeUTF8(request.getParameter("content"));

		response.addHeader("Content-Type","text/html"); 
		
		ReturnMessage msg  = new ReturnMessage();
		TagsServiceImpl service = new TagsServiceImpl();

		String tags = service.getTags(content, msg);
	
		if(msg.getErrCode() != 0)
		{
			//服务器返回给login.jsp的response
			tags = "";
		}
		
//		System.out.println("s="+ sb.toString());

		response.getWriter().write(tags); 
		
 %>       
